package mytest.bean.lookupBean;

public abstract class Bean2 {
    private Bean1 bean1;

    public Bean1 getBean1() {
        bean1 = createBean();
        return bean1;
    }

    public void setBean1(Bean1 bean1) {
        this.bean1 = bean1;
    }

    public abstract Bean1 createBean();
}
